/**
 * Copyright (c) 2025   All rights reserved.
 * <p>
 * https://www.sdl.io
 * <p>
 * 版权所有，侵权必究！
 */

package io.sdl.service;


import io.sdl.common.page.PageData;
import io.sdl.common.service.BaseService;
import io.sdl.dto.DictDTO;
import io.sdl.dto.SysDictDataDTO;
import io.sdl.entity.SysDictDataEntity;

import java.util.List;
import java.util.Map;

/**
 * 数据字典
 *
 * @authorDc 1211734836@qq.com
 */
public interface SysDictDataService extends BaseService<SysDictDataEntity> {


    List<String> getAllDictTypes();


    List<DictDTO> getDictByType(String type);

    //根据字典类型和标签获取字典值
    DictDTO getDictValue(String type, String dictLabel);

    //根据字典类型和标签获取字典值
    DictDTO getLabel(String type, String value);

    Map<String, List<DictDTO>> getDictBatch(List<String> types);

}